﻿@model Comukrte.tblCursos

@{
    ViewBag.Title = "Crear curso";
}

<h2>Crear</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Curso</legend>

       @* <div class="editor-label">
            @Html.LabelFor(model => model.CursoId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CursoId)
            @Html.ValidationMessageFor(model => model.CursoId)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.InstructorCursoId, "Instructor")
        </div>
        <div class="editor-field">
            @Html.DropDownList("InstructorCursoId", String.Empty)
            @Html.ValidationMessageFor(model => model.InstructorCursoId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetodoCursoId, "Metodo del curso")
        </div>
        <div class="editor-field">
            @Html.DropDownList("MetodoCursoId", String.Empty)
            @Html.ValidationMessageFor(model => model.MetodoCursoId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaInicio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaInicio, "Fecha Inicio")
            @Html.ValidationMessageFor(model => model.FechaInicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaFinal, "Fecha Final")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaFinal)
            @Html.ValidationMessageFor(model => model.FechaFinal)
        </div>

        <p>
            <input type="submit" value="Crear" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Regresar a la lista", "Index")
</div>
